package com.bwie.common.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author：ShenJiaFeng
 * @Package：com.bwie.common
 * @Project：zg6_yuekao
 * @name：ChargingStation
 * @Date：2024/5/17 9:42
 */

/**
 * 充电站
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName(value = "charging_station")
public class ChargingStation {
    /**
     * 充电站id
     */
    @TableId(type = IdType.AUTO)
    private Long chargingId;
    /**
     * 充电地区
     */
    private String addrName;
    /**
     * 充电站名称
     */
    private String changingName;
    /**
     * 类型 /充、慢充、免费停
     */
    private Long typeId;
    /**
     * 元/度电
     */
    private double kilowattPrice;
    /**
     * 充电站详情信息
     */
    private String changingDetail;
    /**
     * 时间
     */
    @DateTimeFormat(pattern = "yyyy年MM月dd日: HH-mm-ss")
    @JsonFormat(pattern = "yyyy年MM月dd日: HH-mm-ss",timezone = "GMT+8")
    private Date changingTime;
    /**
     * 充电站总数
     */
    private Integer chargingPileNum;
    /**
     * 收藏统计
     */
    private Long collectId;
    /**
     * 车友印象信息
     */
//    private String riderImpression;
    private Long friendId;
    /**
     * 充电站图片
     */
    private String changingImg;
    /**
     * 统计数
     */
    private Integer countId;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 状态
     */
    private Integer status;
    //快充数
    @TableField(exist = false)
    private Integer quickNum;
    //快充空闲数
    @TableField(exist = false)
    private Integer quickLeisure;
    //慢充空线数
    @TableField(exist = false)
    private Integer slowCharge;
    //好友印象
    @TableField(exist = false)
    private String friendImpression;
    //内容
    @TableField(exist = false)
    private String name;



}
